<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>index07-对象简写</title>
</head>
<body>
    <script type="text/javascript">

        let person = {
            name: "张三",
            age: 20,
            email: '110110@qq.com',
            // getInfo: function(){
            // }
            getInfo(){
                return `名字:${this.name},年龄:${this.age},邮箱:${this.email}`;
            }
        };
        let res = person.getInfo();
        console.log(res);
        
    </script>
</body>
</html>